package ling.archives.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 归档审批请求参数
 * 
 * @author system
 * @date 2025-01-08
 */
@Data
@ApiModel("归档审批请求参数")
public class FilingApprovalRequest {

    @ApiModelProperty(value = "审批节点ID", required = true, example = "123")
    @NotNull(message = "审批节点ID不能为空")
    private Long approvalId;

    @ApiModelProperty(value = "是否通过审批", required = true, example = "true")
    @NotNull(message = "审批结果不能为空")
    private Boolean isPass;

    @ApiModelProperty(value = "审批备注", required = false, example = "审批通过，符合归档要求")
    private String remark;

    public FilingApprovalRequest() {
    }

    public FilingApprovalRequest(Long approvalId, Boolean isPass, String remark) {
        this.approvalId = approvalId;
        this.isPass = isPass;
        this.remark = remark;
    }
}
